package com.hsxc.cdz.controller.consoleController;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/api")
public class ViewLoginController {
	protected static Logger logger = Logger.getLogger("viewlogin");
	@RequestMapping(value = "/all")
	@ResponseBody
	public String viewLogin(HttpServletRequest request, ModelMap model) {
		String ip = request.getRemoteAddr();
		logger.info("ip:" + ip);
		return "login";
	}
}
